package com.bdqn.controller;

import com.bdqn.pojo.User;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <Description> <br>
 *
 * @author tao<br>
 * @version 1.0<br>
 * @taskId: <br>
 * @createDate 2019/10/08 11:31 <br>
 * @see com.bdqn.controller <br>
 */
@RestController
public class HelloController {
    private static final Logger log = LoggerFactory.getLogger(HelloController.class);

    @RequestMapping("/hello")
    public String hello() {
        User user = new User();
        user.setUserId(7L);
        user.setUserName("admin");
        user.setNickName("小A");
        System.out.println(user.toString());
        return "hello";
    }
}
